@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

$left-bg-color:rgba(87, 84, 236, 0.7);
$right-bg-color: rgba(43, 43, 43, 0.8);
$left-btn-hover-color: rgba(87, 84, 236, 1);
$right-btn-hover-color: rgba(28, 122, 28, 1);
$hover-width: 75%;
$other-width: 25%;
$speed:1000ms;

.body {
  font-family: 'Roboto', sans-serif;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  margin: 0;


  .container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #333;

    h1 {
      font-size: 4rem;
      color: #fff;
      position: absolute;
      left: 50%;
      top: 20%;
      transform: translateX(-50%);
      white-space: nowrap;
    }

    .btn {
      position: absolute;
      display: flex;
      align-items: center;
      justify-content: center;
      left: 50%;
      top: 40%;
      transform: translateX(-50%);
      text-decoration: none;
      color: #fff;
      border: #fff solid 0.2rem;
      font-size: 1rem;
      font-weight: bold;
      text-transform: uppercase;
      width: 15rem;
      padding: 1.5rem;
    }

    .split.left .btn:hover {
      background-color: $left-btn-hover-color;
      border-color: $left-btn-hover-color;
    }

    .split.right .btn:hover {
      background-color: $right-btn-hover-color;
      border-color: $right-btn-hover-color;
    }

    .split {
      position: absolute;
      width: 50%;
      height: 100%;
      overflow: hidden;
    }

    .split.left {
      left: 0;
      background: url("./ps.jpg");
      background-repeat: no-repeat;
      background-size: cover;
    }

    .split.left::before {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      background-color: $left-bg-color;
    }

    .split.right {
      right: 0;
      background: url('./xbox.jpg');
      background-repeat: no-repeat;
      background-size: cover;
    }

    .split.right::before {
      content: '';
      position: absolute;
      width: 100%;
      height: 100%;
      background-color: $right-bg-color;
    }

    .split.right,
    .split.left,
    .split.right::before,
    .split.left::before {
      transition: all 1s ease-in-out;
    }
  }

  .hover-left .left {
    width: $hover-width;
  }

  .hover-left .right {
    width: $other-width;
  }

  .hover-right .right {
    width: $hover-width;
  }

  .hover-right .left {
    width: $other-width;
  }
}

@media (max-width: 800px) {
  h1 {
    font-size: 2rem;
    top: 30%;
  }

  .btn {
    padding: 1.2rem;
    width: 12rem;
  }
}